
const { setJson } = require("../utils/index");

exports.upload = (req, res, next) => {
  const { file } = req;
  const url = `/images/${file.filename}`
  setJson(res, 200, 'success', { url })
}